from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('myprofile.views',
    url(r'^uploadImage/$','uploadImage'),
    url(r'^photos/(?P<abstract_user_id>\d+)/$', 'photos'),
    url(r'^deletePhoto/(?P<photo_id>\d+)/$', 'deletePhoto'),
    url(r'addPhoto/$', 'addPhoto'),
    
    url(r'^postUpdate/$', 'postUpdate'),
    url(r'^deleteUpdate/(?P<update_id>\d+)/$', 'deleteUpdate'),
    
    url(r'^connections/(?P<abstract_user_id>\d+)/$', 'displayConnections'),
    
    url(r'^(?P<abstract_user_id>\d+)/$', 'viewOtherProfile'),
    
    url(r'^sendFriendRequest/(?P<abstract_user_id>\d+)/$', 'sendFriendRequest'),
    url(r'^acceptFriend/(?P<abstract_user_id>\d+)/$', 'acceptFriendRequest'),
    url(r'^rejectFriend/(?P<abstract_user_id>\d+)/$', 'rejectFriendRequest'),
    
    
    url(r'^sendEmploymentRequest/(?P<abstract_user_id>\d+)/$', 'sendEmploymentRequest'),
    url(r'^acceptEmployment/(?P<abstract_user_id>\d+)/$', 'acceptEmploymentRequest'),
    url(r'^rejectEmployment/(?P<abstract_user_id>\d+)/$', 'rejectEmploymentRequest'),
    
    url(r'^review/(?P<abstract_user_id>\d+)/$', 'reviews'),
    url(r'^postReview/(?P<abstract_user_id>\d+)/$', 'postReview'),
    url(r'report/(?P<review_id>\d+)/(?P<abstract_user_id>\d+)/$', 'reportReview'),
    url(r'deleteReviewQuestion/(?P<question_id>\d+)/$', 'deleteReviewQuestion'),
    url(r'addReviewQuestion/$', 'addReviewQuestion'),
    url(r'review/(?P<update_id>\d+)/(?P<abstract_user_id>\d+)/$', 'reviewVidOrAud'),
    url(r'postMediaReview/(?P<abstract_user_id>\d+)/(?P<media_id>\d+)/$', 'postMediaReview'),
    url(r'mediaReviews/(?P<update_id>\d+)/', 'viewMediaReviews'), 
    
    url(r'^other/(?P<abstract_user_id>\d+)/$', 'showOther'),
    url(r'^fav/(?P<abstract_user_id>\d+)/$', 'showFavorites'),
    
    url(r'^addSlot/$', 'addSlot'),
    url(r'^schedule/(?P<abstract_user_id>\d+)/$', 'viewSchedule'),
    
    url(r'getUpdated/$', 'getUpdated'),
    
    url(r'^changePassword/$', 'changePassword'),
    
    url(r'^viewMoreUpdates/(?P<updates_type>\w+)/(?P<abstract_user_id>\d+)/(?P<updates_len>\d+)$', 'viewMoreUpdates'),
    url(r'^viewMoreReviews/(?P<abstract_user_id>\d+)/(?P<reviews_len>\d+)$', 'viewMoreReviews'),
)
